package cc.aiee.wxpay.model.score.create;

import java.io.Serializable;

import cn.hutool.core.util.StrUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@NoArgsConstructor
@AllArgsConstructor
public class WxPayLocation implements Serializable {

	private static final long serialVersionUID = 1L;

	@Setter
	@Getter
	private String start_location;

	@Setter
	@Getter
	private String end_location;

//	public String getStart_location() {
//		return maxLength(start_location);
//	}
//
//	public String getEnd_location() {
//		return maxLength(end_location);
//	}

	/**
	 * <pre>
	 *   maxLength("abc123");
	 *   
	 *   System.out.println :  abc...
	 * </pre>
	 * 
	 * @param value
	 * @return
	 */
	public String maxLength(String value) {
		return StrUtil.maxLength(value, 46);
	}

}
